unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TDemo  = class(TObject)
  public
    UnitLink:string;
  end;
  TForm1 = class(TForm)
    Btnx_1: TButton;
    procedure Btnx_1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
uses
  Class_KzUtils;

{$R *.dfm}

procedure TForm1.Btnx_1Click(Sender: TObject);
var
  ListA:TList;
  DemoA:TDemo;
begin
  ListA:=TList.Create;
  DemoA:=TDemo.Create;
  DemoA.UnitLink:='xxx';

  ListA.Add(DemoA);

  //TKzUtils.TryFreeAndNil(ListA);
end;

end.
